<template>
  <div class="swiper">
    <el-carousel height="350px" motion-blur trigger="click">
      <el-carousel-item v-for="data in swiperImgList" key="1">
        <el-image style="height: 100%" :src="data.url"></el-image>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script setup lang="ts">
import { defineProps } from "vue";

interface Props {
  swiperImgList: SwiperImgData[];
}

const props = defineProps<Props>();

export interface SwiperImgData {
  url: string;
  targetPath?: string;
}

const swiperImgList: SwiperImgData[] = props.swiperImgList;
</script>

<style lang="scss" scoped>
.swiper {
  :deep(.el-carousel__indicator button) {
    width: 15px;
    height: 15px;
    border-radius: 50%;
  }
}
</style>
